<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Insert title here</title>
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../../css/easyui/default/easyui.css"/>
		<script type="text/javascript" src="../../js/jquery.min.js"></script>
		<script type="text/javascript" src="../../js/bootstrap/bootstrap.min.js"></script>
		<script type="text/javascript" src="../../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../../js/easyui/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="../../js/self/util.js"></script>
		<script type="text/javascript" src="../../js/self/ssm.operate.js"></script>
		<script type="text/javascript" src="../../js/bootstrap/laydate.js"></script>
	</head>
	<body>
		<form id="form_operateEntity" th:action="@{/attack-task/operate}" method="post" get_url="/attack-task/get">
			<input type="hidden" name="id" th:value="${id}">
			<table class="table table-bordered" style="width: 50%;" id="table_operateEntity">
				<tr>
					<td width="20%">任务名称</td>
					<td width="50%">
						<input id="valid_text_taskName" name="taskName" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validTaskName">任务名称不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">任务描述</td>
					<td width="50%">
						<input id="valid_text_taskDesc" name="taskDesc" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validTaskDesc">任务描述不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">组织机构</td>
					<td width="50%">
						<select id="valid_select_relatedOrg" class="form-control" name="relatedOrg">
							<option value="">---无---</option>
							<option th:each="organization: ${organizationList}" th:value="${organization.id}" th:text="${organization.orgName}"
									th:selected="${organization.id == task.relatedOrg}"></option>
						</select>
					</td>
					<td><span id="span_validRelatedOrg">组织机构不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">参与的测试人员</td>
					<td width="50%">
						<div th:each="tester: ${testerList}">
							<input type="checkbox" name="joinedTesters" th:value="${tester.name}" th:checked="${task.joinedTesters != null and task.joinedTesters.indexOf(tester.name + ',') >= 0}"/><output style="display: inline" th:text="${tester.name}"></output>
						</div>
					</td>
					<td><span id="span_validJoinedTesters">参与的测试人员不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">任务开始时间</td>
					<td width="50%">
						<input id="valid_text_startTime" name="startTime" class="form-control" autocomplete="off" datetype="datetime"/>
					</td>
					<td><span id="span_validStartTime">任务开始时间不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">任务结束时间</td>
					<td width="50%">
						<input id="valid_text_endTime" name="endTime" class="form-control" autocomplete="off" datetype="datetime"/>
					</td>
					<td><span id="span_validEndTime">任务结束时间不能为空</span></td>
				</tr>
				<tr>
					<td colspan="3">
						<button type="button" class="btn btn-success" id="button_sureOperate">确定</button>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
